package cn.tedu.blackhorse.mapper;


import cn.tedu.blackhorse.pojo.dto.CourseUpdateDTO;
import cn.tedu.blackhorse.pojo.entity.Course;
import cn.tedu.blackhorse.pojo.vo.CourseListItemVO;
import cn.tedu.blackhorse.pojo.vo.CourseStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseMapper {
    int insert(Course course);

    int deleteById(Long id);

    int deleteByIds(List<Long> ids);

    int updateById(CourseUpdateDTO course);

    int count();

    List<CourseListItemVO> list();

    CourseStandardVO getById(Long id);

    int countByName(String course);
}
